<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let controller = null
        function cansal(){
            controller && controller.abort()
            controller = new AbortController();  //控制器, fetch请求的控制器,
            const list = fetch(url,
                {
                    signal: controller.signal,   //fetch请求的信号, 当controller.abort()执行时,fetch请求取消
                }
            ).then(res=>{
                
            })
        }
    </script>
</body>
</html>